package com.janwen.spring.trx.declarative;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

@Service("trxBaseService")
public class TrxBaseService {

	@Autowired
	private JdbcTemplate jdbcTemplate;
	
	
	public JdbcTemplate getJdbcTemplate(){
		return this.jdbcTemplate;
	}
	
	
	public void recoverData(){
		String sql = "delete  from stuff";
		jdbcTemplate.execute(sql);
	}
}
